<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <title>404 - 页面不存在</title>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
  <link rel="stylesheet" href="/static/index/css/font-awesome.min.css">
  <link rel="stylesheet" href="/static/index/lib/weui.min.css">
  <link rel="stylesheet" href="/static/index/css/jquery-weui.css">
  <link rel="stylesheet" href="/static/index/css/style.css">
  <style>
    /* 基础布局 */
    body {
      background-color: #f5f5f5;
      min-height: 100vh;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      padding: 20px;
    }

    /* 404核心容器 */
    .error-container {
      background-color: #fff;
      border-radius: 12px;
      box-shadow: 0 4px 16px rgba(0,0,0,0.05);
      width: 100%;
      max-width: 420px;
      padding: 40px 20px;
      text-align: center;
    }

    /* 404数字样式 */
    .error-number {
      font-size: 80px;
      font-weight: 700;
      color: #1AAD19; /* 沿用主题绿色 */
      margin-bottom: 15px;
      line-height: 1;
    }

    /* 错误提示文本 */
    .error-title {
      font-size: 20px;
      color: #333;
      margin-bottom: 10px;
      font-weight: 500;
    }

    .error-desc {
      font-size: 14px;
      color: #888;
      line-height: 1.6;
      margin-bottom: 30px;
      padding: 0 10px;
    }

    /* 操作按钮区域 */
    .error-btns {
      display: flex;
      gap: 12px;
      justify-content: center;
      margin-bottom: 25px;
    }

    .error-btn {
      padding: 10px 24px;
      border-radius: 8px;
      font-size: 15px;
      font-weight: 500;
      cursor: pointer;
      transition: all 0.2s;
      border: none;
      text-decoration: none;
      display: inline-block;
    }

    /* 主按钮（返回首页）- 主题色 */
    .error-btn.primary {
      background-color: #1AAD19;
      color: #fff;
    }

    .error-btn.primary:active {
      background-color: #148812; /* 点击深色反馈 */
    }

    /* 次要按钮（联系客服）- 边框样式 */
    .error-btn.secondary {
      background-color: transparent;
      color: #1AAD19;
      border: 1px solid #1AAD19;
    }

    .error-btn.secondary:active {
      background-color: #f0f9f0; /* 点击浅色反馈 */
    }

    /* 底部版权信息 */
    .copyright {
      color: #ccc;
      font-size: 12px;
      margin-top: 20px;
      text-align: center;
    }

    /* 响应式调整 */
    @media (max-width: 360px) {
      .error-number {
        font-size: 60px;
      }

      .error-title {
        font-size: 18px;
      }

      .error-btns {
        flex-direction: column; /* 小屏按钮垂直排列 */
        padding: 0 20px;
      }

      .error-btn {
        width: 100%;
        padding: 12px 0;
      }
    }
  </style>
</head>

<body>
<!-- 404核心内容区 -->
<div class="error-container">
  <div class="error-number">404</div>
  <h2 class="error-title">页面找不到啦</h2>
  <p class="error-desc">
    抱歉，您访问的页面不存在、已被删除或链接有误<br>
    建议您返回首页或联系客服咨询
  </p>

  <!-- 操作按钮 -->
  <div class="error-btns">
    <a href="/index.html" class="error-btn primary">
      <i class="fa fa-home mr-2"></i>返回首页
    </a>
    <a href="/customer-service.html" class="error-btn secondary">
      <i class="fa fa-headphones mr-2"></i>联系客服
    </a>
  </div>

  <!-- 辅助提示 -->
  <div style="font-size: 13px; color: #aaa;">
    <i class="fa fa-clock-o"></i> 自动返回首页倒计时：<span id="countdown">5</span>秒
  </div>
</div>

<!-- 底部版权 -->
<div class="copyright">
  © 2025 数字货币交易平台 版权所有
</div>

<script src="/static/index/lib/jquery-2.1.4.js"></script>
<script src="/static/index/lib/fastclick.js"></script>
<script>
  FastClick.attach(document.body);

  // 自动返回首页倒计时
  let countdown = 5;
  const countdownEl = document.getElementById('countdown');

  const timer = setInterval(() => {
    countdown--;
    countdownEl.textContent = countdown;

    if (countdown <= 0) {
      clearInterval(timer);
      window.location.href = '/index.html'; // 跳转到首页
    }
  }, 1000);

  // 按钮点击时清除倒计时
  $('.error-btn').on('click', function() {
    clearInterval(timer);
  });
</script>
</body>
</html>